package actionScripts.utils
{
	[Bindable]
	public class AppConstant
	{
		public static var  LOGIN_VIEW    :String   = "login";
		public static var  REGISTER_VIEW :String   = "register";
		public static var  DASHBOARD_VIEW:String   = "dashboard";
		
		public static var BLANK_FIELD_ERROR_MESSAGE      :String = "You can't leave this empty.";
		public static var INVALID_USERNAME_ERROR_MESSAGE :String = "Please use between 6 and 30 characters";
		public static var INVALID_PASSWORD_ERROR_MESSAGE :String = "Short passwords are easy to guess. Try one with at least 8 characters";
		public static var INVALID_PHONE_ERROR_MESSAGE	 :String = "This phone number format is not recognized.";
		public static var INVALID_EMAIL_ERROR_MESSAGE	 :String = "Enter your full email address, including the '@'.";
		
		public static var USER_NAME_NOT_AVAIL_MESSAGE    :String = "Someone already has that username. Try another?";
		public static var INVALID_USER_NAME      		 :String = "User Name Not Exist !";
		
		public static var INSTRUCTION_USERNAME:String ="You can use letters, numbers, and periods.";
		public static var INSTRUCTION_PASSWORD:String ="Use at least 8 characters. Don’t use a password " +
			"\nfrom another site, or something too obvious like your pet’s name.";
		public static var INSTRUCTION_PASSWORD_LOGIN:String ="Use at least 8 characters. "
		public static var INSTRUCTION_PHONE:String = "Phone number helps us with things like keeping your account secure.";
		public static var INSTRUCTION_EMAIL:String = "We will use this address for things like keeping your account secure";
		
		public static var FORM_ITEM_HEIGHT :Number = 30;
		public static var FORM_ITEM_WIDTH  :Number = 310;
		
		public static var validEmailRegExp:RegExp = /^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$/;
		public static var validPhoneNumberRegExp:RegExp = /(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/;
		
		public function AppConstant()
		{
		}
	}
}